#pragma once
#include "IVritualPrinterCreator.h"
#include <Windows.h>
#include <winspool.h>

class Windows7VirtualPrinterCreator :public IVritualPrinterCreator
{
public:
	Windows7VirtualPrinterCreator();

	~Windows7VirtualPrinterCreator();

public:
	virtual bool AddNewCommonVirtualPrinter(LPWSTR wszDriverName, LPWSTR wszPrinterName);

private:
	PRINTER_INFO_2W* GenerateVirtualPrinterInstallInfo(LPWSTR wszDriverName, LPWSTR wszPrinterName);

	void destroyVirtualPrinterInstallInfo(PRINTER_INFO_2W* info);
};

